package com.iscc.fake.service.Impl;

import com.iscc.fake.domain.Carrt;
import com.iscc.fake.dao.CartDao;
import com.iscc.fake.dao.Impl.CartDaoImpl;
import com.iscc.fake.service.CartService;

import java.util.List;

public class CartServiceImpl implements CartService {

        CartDao cartDao=new CartDaoImpl();
    @Override
    public int addCart(Carrt carrt) {
        return cartDao.addCart(carrt);
    }

    @Override
    public int delCart(int cartno) {
        return cartDao.delCart(cartno);
    }

    @Override
    public List<Carrt> selectCart() {
        return cartDao.selectCart();
    }

    @Override
    public int delAllCart() {
        return cartDao.delAllCart();
    }

    @Override
    public double selectSum() {
        return cartDao.selectSum();
    }

    @Override
    public Carrt seletlogo(int uno) {
        return cartDao.seletlogo(uno);
    }
}
